A and B borrowed a tractor for 23 days. A ploughed 12 acres per day for a certain number of days and then B used it to plough 15 acres per day for the remaining days. If they paid Rs 3,000 and Rs 2,000 respectively, for how many days did A use the tractor?