A mortgaged his property to B for Rupees 50 lakhs. Later, A sold the same property to C for Rupees 60 lakhs and allowed C to retain Rupees 50 lakhs to redeem the mortgage. B then sued C for recovery of the mortgage amount. What is the correct legal position?