Show full working while solving this question 5x=1(mode 8)

AAAaannndd the bot gets it wrong yet again!

5x = 8k+1
x = 5,13,21, ...

5x = 1 (mod 8)

Step 1: Subtract 1 from both sides

5x - 1 = 0 (mod 8)

Step 2: Divide both sides by 5

x = -1 (mod 8)

Step 3: Add 8 to both sides

x = 7 (mod 8)

Therefore, the solution is x = 7 (mod 8).