Why can't we do it like this
First choose three letters and choose one box from each row for them and arrange them by 3! .
Then make cases for rest two letters
Case 1) Both the letters are placed in the first row 2!
Case2) in 2nd row 2!
Case 3) one is first row and one in second row ²C1ײC1×2!
Case4 one in second row and one in third row
Case 5 one in first row and one in second row
Resulting the answer
⁵C3׳C1׳C1ײC1×3![2!+2!+²C1ײC1×2!+ ²C1×2!+²C1×2!]