A photographer is taking a photograph of 10 people. He has to arrange them, all of different heights, in two rows of five, one behind the other. Each person at the back must be taller than the person directly in front of them. Along the rows the heights must increase from left to right. In how many ways can the people be arranged.

===

What I got so far:

the arrangement would be something like this

F G H I J

A B C D E

let's says the 10 people is named according to their heights. From 1~ 10, 1 is the shortest, 10 is the tallest.

i) Where A must be 1 and J must be 10

ii)2 must be put at either B or F

iii)9 must be put at either I or E

iv)listing the possible arrangement is out of question, too many ways

that is as far as I can think

Any help are appreciated.

Thanks in advance.