Problem solving for programming TMA