Solution-
To solve this problem it is necessary to have a look at the multiples of 5 and 8.
Multiples of 5 are 5,10,15,20,25,30......
Multiples of 8 are 8,16,24,32.......
It is given that the blue fabric costs $2 more than the green fabric
∴ 5 yards x 6 = 30
And the green fabric is $2 cheaper than the blue
∴ 8 yards x 4= 32
∴ The blue fabric costs $6 per yard and the green costs $4 per yard.
∴They would cost $10 for 1 yard of blue fabric and 1 yard of green fabric.