5.4 yards for each dress. This number lies between 5 and 6
The only value of p for which the equation has exactly 1 real number solution is p=0.
If p<0, there are no real number solutions and if p>0, there are 2 real number solutions.
Hope this helps,
Brian