The perimeter of a triangle is 48 inches and the sides are in the ratio of 3:4:5. Find the length of the longest side.

A) 4
B) 9
C) 16
D) 20