Two rectangles are shown below. Rectangle P has a perimeter of 20 inches. Rectangle Q has a perimeter of 30 inches. What are the values of j and h?