To get the answer we have to calculate income and subtract 576 from it. He sold 17 bp for 18$ so 17*18=306$ We know that rest (48-17=31) he sold for 25$ 31*25=775$ Now we can add income 306+775=1081. Finally we can find profit 1081-576=505$ - its the result