We are given with the ratio
for every 5 pieces of cloth, 2 are rectangles
Cora needs 15 pieces of cloth, by ratio and proportion,
5/2 = 15/x
x = 6
where x is the number of rectangles needed
She would need 6 square pieces to make 15 pieces of cloth to complete her scarf