A ruler that is 1212 in. long (starting at =5)x=5) and has a…