Kara used the formula P=2(l+w) to find the perimeter of the photograph. She tells Jim that the length is 6 cm, and the perimeter is 22 cm. How can Jim find the width of the photo?