3 sides of each square are going to be a part of the 9-sided figure.
The perimeter of the figure would be found thus:
P = 3x + 3y + 3*(x+y)/2
P = 3x + 3y + (3x+3y)/2
using least common denominator,
P = 6x/2 + 6y/2 + (3x+3y)/2
P = (9x + 9y)/2, which is answer choice A.