How to split the data in random forest

I am studying about the random forest and while studying I came across a question how to split the data in random forest.
I want to split this data .

@hinduja1234- you can split the data horizontally and vertically both and then calculate the information gain of both horizontally and vertically which is higher will split the data better.