Kacey spends 30 minutes studying for her math and history tests. She spends twice as long studying math as studying history. How much time does she spend on each subject?​