In this post, we will solve **Basics of Sets and Relations #4 HackerRank Solution**. This problem **(Basics of Sets and Relations #4)** is a part of **HackerRank Databases** series.

**Task**

You are given two sets.

Set **A** = {1,2,3,4,5,6}

Set **B** = {2,3,4,5,6,7,8}

What is the total number of ordered pairs present in the Cartesian Product ** A x B** ? Only enter the correct integer in the answering box. Do not include any extra spaces, tabs or newlines.

**Solution – Basics of Sets and Relations #4 – HackerRank Solution**

42

**Note:** This problem **(Basics of Sets and Relations #4)** is generated by **HackerRank** but the solution is provided by **CodingBroz**. This tutorial is only for **Educational** and **Learning** purpose.