In this post, we will solve **Basics of Sets and Relations #1 HackerRank Solution**. This problem **(Basics of Sets and Relations)** 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}

How many elements are present inÂ ** A â‹ƒ B**?

Only enter the correct integer in the editor below. Do not include any extra spaces, tabs or newlines.

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

8

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