midt2, prob 6