If the amount she saved was $6 for 20%, then the formula for finding savings would be cost*percentage. But if you want to find the original cost, then you play with the current formula until you get this. $6/20%. Have a good one :)
You can use trigonometry specially the cos rule in this case. I can’t send the other pictures. But using the cos rule you can check whether the angle is 90