Please read the following table in Markdown format and then answer the question according to the table. Table cells in one row are seperated by '|', and different rows are seperated by '
'.

Table:
| Pos | Team | Played | Won | Draw | Lost | Goals For | Goals Against | Goal Difference | Points | Notes |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | FH | 18 | 14 | 2 | 2 | 47 | 20 | +27 | 44 | Promoted to 1989 Úrvalsdeild |
| 2 | Fylkir | 18 | 9 | 6 | 3 | 39 | 30 | +9 | 33 | Promoted to 1989 Úrvalsdeild |
| 3 | Víðir | 18 | 8 | 3 | 7 | 38 | 31 | +7 | 27 |  |
| 4 | ÍR | 18 | 8 | 2 | 8 | 31 | 35 | -4 | 26 |  |
| 5 | Selfoss | 18 | 7 | 4 | 7 | 27 | 26 | +1 | 25 |  |
| 6 | Tindastóll | 18 | 7 | 2 | 9 | 27 | 31 | -4 | 23 |  |
| 7 | Breiðablik | 18 | 6 | 5 | 7 | 27 | 33 | -6 | 23 |  |
| 8 | ÍBV | 18 | 6 | 2 | 10 | 29 | 36 | -7 | 20 |  |
| 9 | KS | 18 | 5 | 4 | 9 | 38 | 46 | -8 | 19 | Relegated to 1989 2. deild |
| 10 | Þróttur R. | 18 | 2 | 6 | 10 | 27 | 42 | -15 | 12 | Relegated to 1989 2. deild |
Question:
what was the number of goals for ks?
Answer:
38