The figure above represents a square garden that is divided into 9 rectangular regions with indicated dimensions in meters.  The shaded regions are planted with peas, and the unshaded regions are planted with tomatoes.  If the sum of the areas of the regions planted with peas is equal to the sum of the areas of the regions planted with tomatoes, what is the value of x?

0.5

1

1.5

2

2.5