22.At an art exhibition 7 paintings are to hung in a row along one wall. Find the number of possible arrangements. Given that 3 painting are by the same artist , find the number of arrangements in which
(a) these 3 paintings are hung side by side
(b) any one of these paintings is hung at the beginning of the row but neither of the other 2 is hung at the end of the row.