{% assign metafield_1 = page.metafields.namespace_1.key_1  %}
{% assign metafield_2 = page.metafields.namespace_2.key_2  %}

{% for i in (0...xyz) %} // xyz is the total number of repeated instances of a group, for example 6
{% if metafield_1[i] != blank %}
{{metafield_1[i]}}
{% endif %}

{% if metafield_2[i] != blank %}
{{metafield_2[i]}}
{% endif %}
{% endfor %}