You can target those areas specifically with weightlifting exercises to tone the muscles, but losing body fat is a product of eating a caloric deficit. You can't really lose weight in a specific part of your body without reducing your overall body weight. If you want to trim your thighs and upper arms, you're going to have to lose weight everywhere.