Two square carpets are used in the reception area of a hotel. The sum of the areas of the carpets is 845 square feet. The difference of the areas of the carpets is 507 square feet. Find the dimensions of each carpet.
small carpet
ft on each side
large carpet
ft on each side