Mang Teban bought 15 mangoes in the market. If the number of mangoes is six less than thrice the number of apples of Mang Jose, how many apples did Mang Jose buy?