dataset as Table 1, dataset as Table 2

Pseudocode

Variables to be printed


Output