Answer:
The perimeter of the portrait is $2\times(1+2)=6$ yards.
To find the cost of the frame, we need to calculate the length of the frame needed, which is the same as the perimeter of the portrait. So, the length of the frame needed is 6 yards.
The cost of the frame will be the cost per yard multiplied by the length of the frame:
$6~\text{yards} \times $10.17/\text{yard} = $61.02$
Therefore, the frame will cost $61.02.