I have a table like this:

| image | user |
| --- | --- |
| 1 | 1 |
| 2 | 1 |
| 3 | 1 |
| 1 | 2 |
| 3 | 2 |
| 2 | 3 |
| 3 | 3 |
| ... | ... |

Now I want to find shared images between two users. For example, when I ask for the images shared between `user 1` and `user 2`, I want `[1, 3]` as a result.

How could I achieve this?