You can combine metrics using arithmetic, e.g.
memory_bytes / cpu_usage
assuming that (a) dividing those two metrics gives a meaningful result (which is your responsibility), and (b) the two metrics have exactly the same label sets (so the corresponding timeseries can be matched 1:1).
If they don't have identical label sets then using on(), ignoring() for 1:1 matches, and group_left or group_right for 1-to-many matches are possible. They are documented here: