34 = 2b+2h
17 = b+h
b = 17-h
30 = b*h
30 = (17-h)h
30 = 17h - h^2
h^2 - 17h + 30 = 0
(h - 15)(h - 2) = 0
h = 2 or h = 15
if h = 2 then b = 30/2 = 15
if h = 15 then b = 30/15 = 2
so one side is 15 long and one side is 2 long
by the way its not a square