I think you would need to book both passengers in the same class if you want both to be on the same booking reference. Another reason why your booking may nit be working is that you are trying to book different sectors in different classes. The entire outbound and return each need to be in the same class.