A rectangular garden plot has a length of 48 feet and a width of 30 feet. A similar plot has a length of 40 feet and a width of x feet. What is the value of x?