Combine differnet data types into one entry

Hi everyone,

I am building my app to search for roommate and the data can either be:

  1. Number of roommate as Number
  2. No preference as a custom State

On the final product, I want these fields to be displayed on the same line under the name “Number of Roomate” so it either show the number (0 to 8) or no preference.

Is there a way to do this?

Thank you so much.