Consider this option (basic steps are marked).
The ratio would be 16:14 and then simplify it to 8:7
x=0 or x=4
just factorize basically
cancels the x’s so it’d be 3x-12=0 and from that x=4
The longest two sides will be 4 each and the shortest two sides will be 2 each