The total number of cupcakes soldduring 5 days was 2087. The number of cupcakes sold by the shop on Thursday was 3 times the cupcakes sold on Monday. How many cupcakes were sold on Thursday?