P = 2*L + 2*W
(1,7) --> 2*1 + 2*7 = 2+14 = 16
(7,6) --> 2*7 + 2*6 = 14 + 12 = 26
etc
if you want 12
pick an L, say 4
2*4 + 2*w = 12
4 + w = 6
w = 2
so (4,2)
A function machince accepts inputs as ordered pairs. The componeys of the ordered pairs are natural numbers and the first componet is the length of the rectangle and the second componet is the width. the given machince comptes the perimeter ( the distance around the rectangle) find the out put for(1,7) (7,6) (6,3) and (5,6)
FIND AN INPUT THAT GIVES AN OUTPUT OF 12
RECTANGLE 2L +2W
1 answer