---
# System prepended metadata

title: 12872 - Ruby and Sapphire
tags: [math]

---

# 12872 - Ruby and Sapphire
>author: Utin
###### tags: `math`

---

## Brief
See the code below

## Solution 0

```c=
#include <stdio.h>

int main() {
	int n, m;
	scanf("%d %d", &n, &m);
	printf("%d %d\n", (7 * n - m) / 2, (m - 5 * n) / 2);
}
// By Utin
```

## Reference