Let's say x is longest side, y is shortest side and z is the other side. So we have some equations such that
[tex]x+y+z=57[/tex] (by the first sentence)
[tex]x=(y+z) -3[/tex] (by the second sentence)
[tex]2y=x-15[/tex] (by the third sentence)
By the second equation, we have [tex]y+z=x+3[/tex] and if we use it in the first equation, then [tex]x+y+z=x+(x+3)=57[/tex]. So [tex]x=27[/tex]
Since [tex]x=27[/tex], if we use it in the third equation the we have [tex]2y=x-15=27-15=12[/tex] then [tex]y=6[/tex]
Therefore [tex]z=24[/tex]