A rectangular painting has a diagonal measure of 25 inches and an area of 168 square inches. Use the formula for the area of a rectangle and the Pythagorean Theorem to find the length and width of the painting.