Hello there! Could You please help me with this Geometry word problem?

Here's the problem: Helen painted a picture that was 10 inches longer than it was wide. When she framed the picture, the outside dimensions (that is, the length and the width) were each two inches longer. If the area of the picture with the frame was 40 sq inches more than the area of the picture without its frame, what was the length of the original painting?