John was given his allowance on Monday. On Tuesday he spent $3, on Wednesday mark gave him the $2 he owed. Now John has $5. How many dollars was his allowance?