Ratios are usually good to set up like this:
4x+7x+5x=64 in this case. 4x = the shortest side, 7x = the longest side, and 5x = the middle side. Then solve for x.
16x+64
x=4
Then plug 4 back in for x to see what the individual side lengths are.
4*4=16 for the shortest side.